import request from '@/utils/request'

// 查询设备知识列表
export function listEquipmentsknowledge(query) {
  return request({
    url: '/wechat/equipmentsknowledge/list',
    method: 'get',
    params: query
  })
}

// 查询设备知识详细
export function getEquipmentsknowledge(knowledgeId) {
  return request({
    url: '/wechat/equipmentsknowledge/' + knowledgeId,
    method: 'get'
  })
}

// 新增设备知识
export function addEquipmentsknowledge(data) {
  return request({
    url: '/wechat/equipmentsknowledge',
    method: 'post',
    data: data
  })
}

// 修改设备知识
export function updateEquipmentsknowledge(data) {
  return request({
    url: '/wechat/equipmentsknowledge',
    method: 'put',
    data: data
  })
}

// 删除设备知识
export function delEquipmentsknowledge(knowledgeId) {
  return request({
    url: '/wechat/equipmentsknowledge/' + knowledgeId,
    method: 'delete'
  })
}

// 导出设备知识
export function exportEquipmentsknowledge(query) {
  return request({
    url: '/wechat/equipmentsknowledge/export',
    method: 'get',
    params: query
  })
}